﻿@using DevExpress.Web.Mvc.UI
@using Dogshow.Model
@using Dogshow.Web.ViewModels.Korisnici
@model KorisnikViewModel
           
@using (Html.BeginForm("SacuvajKorisnikaKinoloskoDrustvo", "Korisnici", FormMethod.Post, new { @class = "edit_form" }))
{
    @Html.Partial("_PodaciKorisnika", Model)
    <div class="line">
        @Html.DevExpress().Label(label =>
        {
            label.Text = "Kinološko društvo:";
            label.ControlStyle.CssClass = "label";
            label.AssociatedControlName = "IdKinoloskogDrustva";
        }).GetHtml()
        @Html.DevExpress().ComboBox(s =>
        {
            s.Name = "IdKinoloskogDrustva";
            s.ShowModelErrors = true;
            s.Properties.DropDownRows = 30;
            s.Properties.ValueType = typeof(int);
            s.Properties.ValueField = "Id";
            s.Properties.TextField = "";
            s.ControlStyle.CssClass = "editor";
        }).BindList(Model.KinoloskaDrustva).Bind(((KorisnikKinoloskoDrustvo)Model.Korisnik).IdKinoloskogDrustva).GetHtml()
    </div>
    <div class="line">
        @Html.DevExpress().Button(s =>
           {
               s.Name = "btnSacuvaj";
               s.Text = "Sačuvaj";
               s.ControlStyle.CssClass = "btnSave";
               s.UseSubmitBehavior = true;
           }).GetHtml()    
    </div>
    
}


      